/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn;

/**
 * <p>Project: javase202202 - T2
 * <p>Powered by Lisi On 2022-06-07 10:46:25
 * <p>Created by IntelliJ IDEA
 *

 * @version 1.0
 * @since 17
 */
public class T2 {
    public static void main(String[] args) {
        //类 实例化 建立对象，默认代码执行顺序是 静态程序块 初始化程序块 相关的构造方法
        Student s = new Student();
        //给属性赋值
        s.age = 22;
        s.name = "张三丰";

        //调用没有返回值的方法
        s.showInfo();

        //求19的立方
        System.out.println(s.lf(19));


        System.out.println("----------------");

        Student s1 = new Student();
        Student s2 = new Student();

    }
}
